﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LRT.Caching
{
    interface IDistributedCache
    {
        object this[string key]
        {
            get;
            set;
        }

        void Add(string key, Object cacheItem, TimeSpan span);

        void Add(string key, Object cacheItem, DateTime dateTime);

        void Set(string key, Object cacheItem, TimeSpan span);

        void Set(string key, Object cacheItem, DateTime dateTime);

        void Remove(string key);

        object Get(string key);

        int Count();


    }
}
